package com.self.liu.xp.service.test.copy;

import java.util.ArrayList;
import java.util.List;

import com.self.liu.xp.base.IThriftService;

public class ThriftTestService implements IThriftService {

    @Override
    public Object doExecute(Object reqObj) {
        TestReq req = (TestReq) reqObj;
        TestRes res = new TestRes();
        res.setCode(req.getCode());
        res.setName(req.getName());
        res.setMsg(req.getMsg() + "," + req.getName() + ", is SUCCESS");
        List<TestRes> list = new ArrayList<TestRes>();
        list.add(res);
        list.add(res);
        list.add(res);
        return list;
    }

    @Override
    public Class<?> getReqClass() {
        return TestReq.class;
    }

}
